package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.ErrorInfoExample.E_DEVIEC_TYPE;
import static org.jsola.hr.example.ErrorInfoExample.E_ERROR_INFO;
import static org.jsola.hr.example.ErrorInfoExample.E_REMARK;
import static org.jsola.hr.example.ErrorInfoExample.M_DEVIEC_TYPE_MAX;
import static org.jsola.hr.example.ErrorInfoExample.M_ERROR_INFO_MAX;
import static org.jsola.hr.example.ErrorInfoExample.M_REMARK_MAX;
import static org.jsola.hr.example.ErrorInfoExample.N_DEVIEC_TYPE;
import static org.jsola.hr.example.ErrorInfoExample.N_ERROR_INFO;
import static org.jsola.hr.example.ErrorInfoExample.N_REMARK;

/**
 * 异常记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【异常记录表】的参数")
@Data
public class ErrorInfoAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_DEVIEC_TYPE, example = E_DEVIEC_TYPE)
    @Length(max = 32, message = M_DEVIEC_TYPE_MAX)
    private String deviecType;

    @ApiModelProperty(notes = N_ERROR_INFO, example = E_ERROR_INFO)
    @Length(max = 2147483647, message = M_ERROR_INFO_MAX)
    private String errorInfo;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 32, message = M_REMARK_MAX)
    private String remark;


}

